package com.autumn.oauth2.zero.domain.entities;

import javax.persistence.Column;

import com.autumn.mybatis.mapper.annotation.ColumnOrder;
import com.autumn.mybatis.mapper.annotation.Index;

/**
 * 用户登录绑定
 * 
 * @author 老码农 2018-04-10 23:15:21
 */
public abstract class AbstractUserLoginBinding extends AbstractUserChild {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7193819934580478652L;

	@ColumnOrder(2)
	@Column(name = "client_type", length = 20, nullable = false)
	@Index
	private String clientType;

	@ColumnOrder(3)
	@Column(name = "client_equipment", length = 255, nullable = false)
	@Index
	private String clientEquipment;

	@ColumnOrder(4)
	@Column(name = "login_token", length = 255, nullable = false)
	@Index
	private String loginToken;

	@ColumnOrder(5)
	@Column(name = "login_token_validity", nullable = false)
	@Index
	private Integer loginTokenValidity;
	

	public String getClientType() {
		return clientType;
	}

	public void setClientType(String clientType) {
		this.clientType = clientType;
	}

	public String getClientEquipment() {
		return clientEquipment;
	}

	public void setClientEquipment(String clientEquipment) {
		this.clientEquipment = clientEquipment;
	}

	public String getLoginToken() {
		return loginToken;
	}

	public void setLoginToken(String loginToken) {
		this.loginToken = loginToken;
	}

	public Integer getLoginTokenValidity() {
		return loginTokenValidity;
	}

	public void setLoginTokenValidity(Integer loginTokenValidity) {
		this.loginTokenValidity = loginTokenValidity;
	}

}
